<td class="am-text-middle">


    <?php if(isset($sub_menus)) :foreach($sub_menus as $item):?>
        <?php if($item['is_top']==0):?>
            <?php if($item['is_windows']==1):?>
                <a href="javascript:;"  data-title="<?=$item['title'] ?>"
                   data-height="<?=$item['height']?>"
                   data-width="<?=$item['width']?>"
                   data-uri="<?=url('menus/add','category_id='.$first['category_id'])?>">
                    <i class=" ajax am-icon-pencil">
                    </i> <?=$item['title'] ?>
                </a>
            <?php elseif($item['is_windows']==2):?>
                <a href="javascript:;" class="item-delete tpl-table-black-operation-del"
                   data-id="<?= $first['category_id'] ?>">
                    <i class="am-icon-trash"></i> <?=$item['title'] ?>
                </a>
            <?php endif;?>
        <?php endif;?>
    <?php endforeach;endif;?>


    </div>
</td>